﻿using System;
using System.Collections.Generic;

namespace SmartCommunity.Models;

/// <summary>
/// 工单池
/// </summary>
public partial class WorkOrderEntity
{
    /// <summary>
    /// 工单ID
    /// </summary>
    public Guid OrderId { get; set; }

    /// <summary>
    /// 工单编号
    /// </summary>
    public string OrderNo { get; set; } = null!;

    /// <summary>
    /// 工单类型
    /// </summary>
    public int OrderType { get; set; }

    /// <summary>
    /// 工单描述
    /// </summary>
    public string Description { get; set; } = null!;

    /// <summary>
    /// 工单状态
    /// </summary>
    public int OrderStatus { get; set; }

    /// <summary>
    /// 提交人
    /// </summary>
    public string? SubmitPerson { get; set; }

    /// <summary>
    /// 提交人电话
    /// </summary>
    public string? SubmitTel { get; set; }

    /// <summary>
    /// 小区ID
    /// </summary>
    public Guid? SubmitAreaId { get; set; }

    /// <summary>
    /// 提交人房号
    /// </summary>
    public Guid? SubmitRoomId { get; set; }

    /// <summary>
    /// 提交人地址
    /// </summary>
    public string? SubmitAddr { get; set; }

    /// <summary>
    /// 提交时间
    /// </summary>
    public DateTime? SubmitTime { get; set; }

    /// <summary>
    /// 评价星级
    /// </summary>
    public int? RateStars { get; set; }

    /// <summary>
    /// 评价内容
    /// </summary>
    public string? RateContent { get; set; }

    /// <summary>
    /// 工单处理人账号
    /// </summary>
    public int? HandleUser { get; set; }

    /// <summary>
    /// 工单处理人姓名
    /// </summary>
    public string? HandleUserName { get; set; }

    /// <summary>
    /// 处理结果
    /// </summary>
    public string? HandleResult { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreatedBy { get; set; } = null!;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string UpdatedBy { get; set; } = null!;

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime UpdatedTime { get; set; }

    public virtual ICollection<WorkProcessEntity> WorkProcesses { get; set; } = new List<WorkProcessEntity>();
}
